package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户分享链接第三方邀请
 */
@Getter
@Setter
@Document(collection = "app_user_share_activity")
@CompoundIndexes({
        @CompoundIndex(name = "share_user_comIdx",def = "{'userId':1,'activityId':1}",unique = true)
})
public class AppUserShareActivity extends EntityBase {
    private String appId;
    private String userId;
    /**
     * 活动ID
     */
    private String activityId;
    /**
     * 第三方应用名称
     */
    private String appName;

    @Transient
    private String activityName;

    private String sharedByOpenId;

    private String taskId;
    /**
     * 活动类型
     */
    private String activityType;

    /**
     * 1、分拥 2、电子证书领取、 3 渠道  4、
     */
    private Integer shareLinkType= 1;

    /**
     * 链接跳转地址
     */
    private String linkJumpUrl;

    /**
     * 参数
     */
    private String linkParams;

    /**
     * 活动渠道ID
     */
    private String activityChannelId;

    /**
     * 1、详情页 2、首页
     */
    private Integer pageType =1;


}
